package algorithm.graph.base;

public class GraphEvent<T> {
    String eventType;
    T data;

    public GraphEvent(String eventType) {
        this.eventType = eventType;
    }

    public GraphEvent(String eventType, T data) {
        this.eventType = eventType;
        this.data = data;
    }

    public String getEventType() {
        return eventType;
    }

    public T getData() {
        return data;
    }
}
